Ext.namespace('GBIF');
Ext.namespace('GBIF.GeoSpatial');

GBIF.GeoSpatial.WMSDataGridPanel = function(config){
		 
	var store = new Ext.data.JsonStore({
					fields:[
						{name:'fid',type:'string',mapping:'@attributes.fid'}
					,	{name:'count',type:'string'}
			//		,	{name:'fid',type:'string',mapping:'@attributes.fid'}
          			
        			]
	}); 

	Ext.apply(this,config,{
				    title: 'WMS Grid'
			    ,	store: store
				,	id:'grid'
				,   columns: [
						//		{header: "Fid",dataIndex:"fid",width:300}
								{header: "Fid",dataIndex:"fid",width:300}
							,	{header: "Count",dataIndex:'count'}
							]
				,   width: 600
				,   height: 600
			});

	GBIF.GeoSpatial.WMSDataGridPanel.superclass.constructor.call(this, config)
}
Ext.extend(GBIF.GeoSpatial.WMSDataGridPanel, Ext.grid.GridPanel, {
	
})
